#ifndef _MCUIO_
#define _MCUIO_
#include "MCUConfig.h"
#include "MCUUser.h"
#define CAPCHANEL 0
#define NTCCHANEL 1
#define VOLCHANEL 26


#if 0
typedef struct 
{
	short _size;
	u8 _data[TX_BUFFERLEN];
}SimpleListData;
extern short DataIndex;
extern SimpleListData simpleListData[];
extern SimpleListData simpleListDataUser;
void Data_push_back(SimpleListData sd);
//if nullptr ,no data
SimpleListData* Data_pop_front(); 
//-1 no data else 
char Data_get_idx();
#endif

short getAdc(u8 Channel);
short getFilterAdcNtc(short AdcVal);
short getFilterAdcPressure(short AdcVal);
void writeEeprom(uint8_t* DataToWrite, short dataLen);
void readEeprom(uint8_t* DataToRead, short dataLen);

//实现epptrom的读取和写入



#define BUZTIME_LONG 1000
#define BUZTIME_SHORT 100


void buzTimeMgr(void);
void buzCtrl(void);
unsigned char buzCnt(void);
void setBuz(u8 Cnt, u16 TimeToOn, u16 TimeToOff);
extern bool isEnableBuz;


#endif
